home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 May / SGI IRIX 6.5 Complementary Applications 2004 May.iso / dist / OpenOffice.idb / usr / OpenOffice / help / en / sbasic.jar / text / sbasic / common / 03020305.xml < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-24  |  2.0 KB  |  22 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Seek Statement [Runtime]</title><meta name="filename" content="text/sbasic/common/03020305"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         p.P1{
  5.                 }
  6.         span.T1{
  7.                 font-weight:bold;}
  8.         </style></head><body>
  9.   
  10.   
  11.   <p class="P1"/>
  12.   <p class="Head1"><a name="seek"/><help:link Id="66552" xmlns:help="http://openoffice.org/2000/help">Seek Statement [Runtime]</help:link></p>
  13.   <p class="Paragraph">Determines the position for the next writing or reading in a file, which was opened with the open statement.<a name="ende"/></p>
  14.   <p class="Paragraph">For random access files, the Seek function returns the number of the next record to be written.</p>
  15.   <p class="Paragraph">For all other files, the function returns the byte position at which the next operation is to occur.</p>
  16.   <p class="Paragraph">See also: <help:link Id="66386" Eid="open" xmlns:help="http://openoffice.org/2000/help">Open</help:link>, <help:link Id="66592" Eid="seek" xmlns:help="http://openoffice.org/2000/help">Seek</help:link>.</p>
  17.   <p class="Paragraph"><span class="T1">Syntax</span>:</p>
  18.   <p class="Paragraph">Seek[#]FileNumber, Position (As Long) <help:key-word value="Seek" tag="kw66552_1" xmlns:help="http://openoffice.org/2000/help"/></p>
  19.   <p class="Paragraph"><span class="T1">Parameter</span>:</p>
  20.   <p class="Paragraph">FileNumber: Returns the file number determined by the Open statement.</p>
  21.   <p class="Paragraph">Position: Position for the next writing or reading. Position can be a number between 1 and 2,147,483,647. According to the file type the position indicates the number of the record(Files in the Random mode) or the the byte position (Files in the Binary, Output, Append or Input mode). The first byte of the file has the position 1 and the second byte has the position 2.</p>
  22.  </body></html>